word_search
WordSearch
class WordSearch(Policy)
A content management policy for Word Search.
WordSearch(default="allow", config={ "textSearchConfig": { "@libVersion": "core2", "textList": [ {"name": "textItem", "switches": [ {"name": "text", "value": "generic"}, {"name": "textSetting", "@replacementChar": "*", "value": "redact"}, ]}, ] } })
__init__
def __init__(default: str = "allow", config: dict = {})
add_textItem
def add_textItem(text: str,
replacementChar: str,
textSetting: str = "redact",
**kwargs)
Adds a textItem to the textSearchConfig textList subelements.
remove_textItem
def remove_textItem(text: str)
Removes a textItem from the textSearchConfig textList subelements.